<template>
  <div class="parent">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>
</template>

<script>
export default {
  name: "TestLess"
}
</script>

<style scoped lang="less">
.parent {
  width: 100%;
  height: 800px;
  background-color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;

  div {
    display: flex;
    justify-content: center;
    align-items: center;

    &:nth-of-type(1) {
      background-color: aqua;
    }

    &:nth-of-type(2) {
      background-color: aliceblue;
    }

    &:nth-of-type(3) {
      background-color: red;
    }

    width: 100px;
    height: 20px;

  }
}

</style>